package wx

import (
	"github.com/gin-gonic/gin"
	"project/pkg/dao/mysql"
	"project/pkg/router"
)

func init() {
	router.AddRouter(new(WRouter))
}

type WRouter struct {
}
type WHandler struct {
	M mysql.Mysql
}

func NewWHandler() *WHandler {
	return &WHandler{
		M: mysql.NewMysql(),
	}
}
func (WRouter) Router(e *gin.Engine) {
	handler := NewWHandler()
	wx := e.Group("wx")
	wx.POST("/openid", handler.WxGetOpenID)
}
